#ifndef __SERPORT5_H
#define __SERPORT5_H

/* Includes ------------------------------------------------------------------*/
#include "sys.h"

/* Exported variables ---------------------------------------------------------*/
#define  ser5_RD_BUFFMAX 256
#define  ser5_TX_BUFFMAX 256

extern unsigned char    ser5_WrFlag1;
extern unsigned char    ser5_WrFlag2;
extern unsigned char    ser5_RdFlag;
extern unsigned char    ser5_RdTime;
extern unsigned char    ser5_RdStep;
extern unsigned int    ser5_RdNum;
extern unsigned int    ser5_TxNum;

extern  char    ser5_RB[ser5_RD_BUFFMAX];
extern  char    ser5_TB[ser5_TX_BUFFMAX];
//extern u16	SPRT_Type, SPRT_Kind, SPRT_LanguageType, SPRT_PurifyType;

/* Exported define ------------------------------------------------------------*/

void ser5_Write(char *ser5buff,u16 TX_Num);
void ser5_Init(uint16_t BaudRate, uint32_t WordLength, uint32_t StopBits, uint32_t Parity);
void ser5_rx_interrupt(UART_HandleTypeDef *huart);

#endif /*DEFINE END */
